import Vue from 'vue'
import Router from 'vue-router'
import indexinfo from '@/components/index.vue'
import login from '@/components/login.vue'
import spaBasis from '@/components/userManage/spaBasis.vue'

Vue.use(Router)

export default new Router({
  mode:"history",
  history:false,
  routes: [
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/index',
      name: 'index',
      component: indexinfo,
      children:[
        {
          path: '/index',
          name: 'indechildren',
          component: spaBasis
        },
       {
          path: '/spaBasis/:toUrl',
          name: 'spaBasis',
          component: spaBasis
       }
      ]
    }

  ]
})
